import request from '@/utils/request'
import { IuserLogin, Isendtype } from '@/type/user'
export default {
    userLogin: (data: IuserLogin) => request.post('/userlogin', data),
    getUsers: (data: Isendtype) => request.post('/getUsers', data),// pageSize, currentPage, auth
    updateUser: (data: any) => request.post('/updateUser', data),
    addUser: (data: any) => request.post('/addUser', data),
    getOneInfo: (id: number) => request.get('/getOneInfo', { params: { id } }),
    deleteUser: (id: number) => request.get('/deleteUser', { params: { id } }),
    uploadAvatar: (data: any) => request.post('/upload', data)


}